from django.db import models
from django.contrib.auth.models import User

# Create your models here.
import datetime

class Person(User):
    class Meta:
        abstract = True

class Article(Person):
    title = models.CharField(max_length=50)
    content = models.TextField(max_length=100)
    time = models.DateTimeField(datetime.date.today())

    def __str__(self):
        return self.title
